// http://stackoverflow.com/questions/8332333/node-js-setting-up-environment-specific-configs-to-be-used-with-everyauth
var env = process.env.NODE_ENV;
var config = require('./config.json');
console.log('NODE_ENV=' + env);
module.exports = exports = function () {
    switch (env) {
        case 'office':
            return config.office;

        case 'production':
            return config.production;

        case 'home':
            return config.home;

        default:
            throw new Error("unkonwn environment");
    }
};